package com.example.group_20.entity;

import com.baomidou.mybatisplus.annotation.TableName;

import java.sql.Date;
import java.sql.Time;

/**
 * @author: 栋
 * @data: 2023/8/8
 * @descriptions:
 */

@TableName("chatinfor")
public class Chat {

    private int id;
    private String content;
    private String sent_id;
    private String sent_name;
    private String recv_id;
    private String recv_name;
    private String response;
    private Date chat_date;
    private Time chat_time;
    private Date resp_date;
    private Time resp_time;
    private int status;

    public Chat() {
    }

    public Chat(int id, String content, String sent_id, String sent_name, String recv_id, String recv_name, String response, Date chat_date, Time chat_time, Date resp_date, Time resp_time, int status) {
        this.id = id;
        this.content = content;
        this.sent_id = sent_id;
        this.sent_name = sent_name;
        this.recv_id = recv_id;
        this.recv_name = recv_name;
        this.response = response;
        this.chat_date = chat_date;
        this.chat_time = chat_time;
        this.resp_date = resp_date;
        this.resp_time = resp_time;
        this.status = status;
    }

    public String getSent_name() {
        return sent_name;
    }

    public void setSent_name(String sent_name) {
        this.sent_name = sent_name;
    }

    public String getRecv_name() {
        return recv_name;
    }

    public void setRecv_name(String recv_name) {
        this.recv_name = recv_name;
    }

    public Date getResp_date() {
        return resp_date;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public void setResp_date(Date resp_date) {
        this.resp_date = resp_date;
    }

    public Time getResp_time() {
        return resp_time;
    }

    public void setResp_time(Time resp_time) {
        this.resp_time = resp_time;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getSent_id() {
        return sent_id;
    }

    public void setSent_id(String sent_id) {
        this.sent_id = sent_id;
    }

    public String getRecv_id() {
        return recv_id;
    }

    public void setRecv_id(String recv_id) {
        this.recv_id = recv_id;
    }

    public String getResponse() {
        return response;
    }

    public void setResponse(String response) {
        this.response = response;
    }

    public Date getChat_date() {
        return chat_date;
    }

    public void setChat_date(Date chat_date) {
        this.chat_date = chat_date;
    }

    public Time getChat_time() {
        return chat_time;
    }

    public void setChat_time(Time chat_time) {
        this.chat_time = chat_time;
    }

    @Override
    public String toString() {
        return "Chat{" +
                "id=" + id +
                ", content='" + content + '\'' +
                ", sent_id='" + sent_id + '\'' +
                ", sent_name='" + sent_name + '\'' +
                ", recv_id='" + recv_id + '\'' +
                ", recv_name='" + recv_name + '\'' +
                ", response='" + response + '\'' +
                ", chat_date=" + chat_date +
                ", chat_time=" + chat_time +
                ", resp_date=" + resp_date +
                ", resp_time=" + resp_time +
                ", status=" + status +
                '}';
    }
}
